package chapter05;

/**
 * Created by V5470-I5 on 2016/3/17.
 */
class CashCard {
    String number;
    int balance;
    int bonus;
    CashCard(String number, int balance, int bonus){
        this.number=number;
        this.balance=balance;
        this.bonus=bonus;
    }
}
public class CashApp{
    public static void main(String[] args){
        CashCard[] cards={
                new CashCard("A001",500,0),
                new CashCard("A002",500,0),
                new CashCard("A003",500,0),
                new CashCard("A004",2000,2),
                new CashCard("A005",5000,5)
        };
        for(CashCard card :cards){
            System.out.printf("(%s,%d,%d)%n",card.number,card.balance,card.bonus);
        }
    }
}
